﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:skin="clr-namespace:UBCon.Ribbon.SkinManagers"
                     xmlns:ubcr="clr-namespace:UBCon.Ribbon">

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=DefaultBorderBrush}" Color="#FF7494BE"/>
    
    <CornerRadius x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=CornerRadiusForSplittButton}">0,3,3,0</CornerRadius>

    <Thickness x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type ubcr:RibbonBar}, ResourceId=ShowOnlyTabMargin}">0</Thickness>
    
    <LinearGradientBrush x:Shared="True" x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=MouseOverBackgroundBrush}"  StartPoint="0,0" EndPoint="0,1" >
        <GradientStop Offset="1" Color="#FFFEFBF4" />
        <GradientStop Offset="0.79" Color="#FFFDE7CE" />
        <GradientStop Offset="0.39" Color="#FFFFCE6B" />
        <GradientStop Offset="0.19" Color="#FFFFDE9A" />
        <GradientStop Offset="0" Color="#FFFFEBAA" />
    </LinearGradientBrush>

    <SolidColorBrush x:Shared="True"  x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=PressedBorderBrush}"  Color="#FFC29B29" />

    <LinearGradientBrush x:Shared="True" x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=MouseOverBorderBrush}" StartPoint="0,0" EndPoint="0,1" >
        <GradientStop Offset="0" Color="#FFE3C085" />
        <GradientStop Offset="0" Color="#FFF4CC89" />
        <GradientStop Offset="1" Color="#FFF5BB56" />
    </LinearGradientBrush>
    
    <!-- Caption button colors-->
    
    <LinearGradientBrush x:Shared="True" x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=PressedBackgroundBrush}" StartPoint="0,0" EndPoint="0,1" >
        <GradientStop Offset="0" Color="#FFFFDCA0" />
        <GradientStop Offset="0.18" Color="#FFFFD692" />
        <GradientStop Offset="0.39" Color="#FFFFC45D" />
        <GradientStop Offset="1" Color="#FFFFD178" />
    </LinearGradientBrush>

    <SolidColorBrush x:Shared="True"
                     Opacity="0.3"
                     x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=CaptionButton_PressedStateBackgroundBrush}"
                     Color="#FFCBD0D7"/>

    <SolidColorBrush x:Shared="True"  x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=CaptionButton_PressedStateBorderBrush}"
                     Color="#FFA6ACB3" Opacity="0.7"/>
    
    <LinearGradientBrush x:Shared="True"
                         x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=PressedStateBackgroundBrushForCloseButton}" 
                        EndPoint="0.5,1" 
                         StartPoint="0.5,0">
        <GradientStop Color="#FFFE8382" 
                      Offset="0"/>
        <GradientStop Color="#FFE36162" 
                      Offset="1"/>
        <GradientStop Color="#FFF34646" 
                      Offset="0.491"/>
    </LinearGradientBrush>

    <SolidColorBrush x:Shared="True"
                       x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=MouseOverStateBrushForCloseButton}" 
                       Color="#FFA93939"/>

    <SolidColorBrush x:Shared="True"
                       x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=BackgroundBrushForCaptionButton}" 
                       Color="#FFF0F3F5"/>

    <SolidColorBrush x:Shared="True"
                       x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=BorderBrushForCaptionButton}" 
                       Color="#FF646464"/>

    <SolidColorBrush x:Shared="True"
                       x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=CaptionButton_PenBrush}" 
                       Color="#FF707070"/>

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=SelectedGalleryItemBrush}" Color="#FFC29B29" />

    <LinearGradientBrush x:Shared="True" x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WindowBackgroundBrush}" EndPoint="1,1" StartPoint="0,0">
        <GradientStop Color="#FFE9EBED" Offset="1"/>
        <GradientStop Color="#FFE7E9EB" Offset="0.47"/>
        <GradientStop Color="#FFE8EAED"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Shared="True" x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=RibbonBarBackgroundBrush}" EndPoint="1,1" StartPoint="0,0">
        <GradientStop Color="#FFE9EBED" Offset="1"/>
        <GradientStop Color="#FFE7E9EB" Offset="0.47"/>
        <GradientStop Color="#FFE8EAED"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Shared="True" x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=SelectedTabItemBrush}" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="White" Offset="0"/>
        <GradientStop Color="#FFF0F1F4" Offset="1"/>
        <GradientStop Color="#FFFDFCFC" Offset="0.491"/>
    </LinearGradientBrush>

    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0"
                         x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=RibbonBarSelectedItemBkBrush}">
        <GradientStop Color="White" Offset="0"/>
        <GradientStop Color="#FFF0F1F4" Offset="1"/>
        <GradientStop Color="#FFFDFCFC" Offset="0.491"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WindowActiveTitleBrush}" EndPoint="1,1" StartPoint="0,0">
        <GradientStop Color="#FFE9EBED" Offset="1"/>
        <GradientStop Color="#FFE7E9EB" Offset="0.47"/>
        <GradientStop Color="#FFE8EAED"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=WindowInActiveTitleBrush}" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="White" Offset="0"/>
        <GradientStop Color="#FFF0F1F4" Offset="1"/>
        <GradientStop Color="#FFFDFCFC" Offset="0.491"/>
    </LinearGradientBrush>

    <GridLength x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=TabItemsRowHeight}">23</GridLength>

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=RibbonWindowBorderBrush}" Color="#FF646464"/>

    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0"
                         x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=AppMenuItemsPanelBrush}">
        <GradientStop Color="#FFF8FAFB" Offset="0.238"/>
        <GradientStop Color="#FFE1E4E8" Offset="1"/>
        <GradientStop Color="#FFEDEFF2" Offset="0.511"/>
    </LinearGradientBrush>

    <Visibility x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=AppMenuSwirlVisibility}">Visible</Visibility>

    <DrawingBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=AppMenuSwirlBrush}">
        <DrawingBrush.Drawing>
            <DrawingGroup>
                <GeometryDrawing Geometry="M321.09099,16.429 C354.92299,9.3469997 388.46199,3.8959999 421.33499,1.4242829E-11 L-5.0590639E-12,1.4242829E-11 -5.0590639E-12,146.941 C75.818998,91.880997 188.428,44.199999 321.09099,16.429">
                    <GeometryDrawing.Brush>
                        <LinearGradientBrush EndPoint="1,0" StartPoint="0,0">
                            <GradientStop Color="#FF6B98DC" Offset="0.569"/>
                            <GradientStop Color="White" Offset="0.991"/>
                            <GradientStop Color="#FF6495E9" Offset="0.155"/>
                        </LinearGradientBrush>
                    </GeometryDrawing.Brush>
                </GeometryDrawing>
                <GeometryDrawing 
									 Geometry="M314.52999,16.092999 C347.67099,9.1559997 380.52399,3.8159999 412.72699,-5.0413008E-12 L-5.0022209E-12,-5.0413008E-12 -5.0022209E-12,143.93799 C74.269999,90.003997 184.578,43.295998 314.52999,16.092999">
                    <GeometryDrawing.Brush>
                        <LinearGradientBrush EndPoint="1,0" StartPoint="0,0">
                            <GradientStop Color="#FF6B98DC" Offset="0.569"/>
                            <GradientStop Color="White" Offset="0.991"/>
                            <GradientStop Color="#FF6495E9" Offset="0.155"/>
                        </LinearGradientBrush>
                    </GeometryDrawing.Brush>
                </GeometryDrawing>
                <DrawingGroup>
                    <DrawingGroup.Transform>
                        <MatrixTransform Matrix="1,0,0,1,2.8421709430404E-14,0" />
                    </DrawingGroup.Transform>
                    <GeometryDrawing Geometry="M358.671,12.268 C396.463,6.9799998 433.928,2.9089999 470.649,-1.0089707E-11 L-2.5011104E-12,-1.0089707E-11 -2.5011104E-12,109.723 C84.692001,68.608998 210.482,33.003999 358.671,12.268" >
                        <GeometryDrawing.Brush>
                            <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                                <GradientStop Color="#FF215AAE" Offset="0.431"/>
                                <GradientStop Color="#FF215AB0" Offset="0.216"/>
                                <GradientStop Color="#FF6495E9" Offset="0.845"/>
                            </LinearGradientBrush>
                        </GeometryDrawing.Brush>
                    </GeometryDrawing>
                </DrawingGroup>
            </DrawingGroup>
        </DrawingBrush.Drawing>
    </DrawingBrush>
    
    <LinearGradientBrush x:Shared="True" x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=AppMenuSelectedContentBackgroundBrush}" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="White" Offset="0"/>
        <GradientStop Color="#FFF0F1F4" Offset="1"/>
        <GradientStop Color="#FFFDFCFC" Offset="0.491"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Shared="True" x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_DefaultStateBrush}" EndPoint="0,1" StartPoint="0,0">
        <GradientStop Color="#FFB6BABF" Offset="1"/>
        <GradientStop Color="#FFB6BABF"/>
        <GradientStop Color="#FFB6BABF" Offset="1"/>
    </LinearGradientBrush>
    <!--================================Brushes for sided scroller(Refer to SidedScrollViewerTemplate)==============================================-->
    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=SideScrollerPressedBoderBrush}" Color="#FFC29B29" />

    <LinearGradientBrush x:Shared="True" x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=SideScrollerMouseOverBoderBrush}" StartPoint="0,0" EndPoint="0,1" >
        <GradientStop Offset="0" Color="#FFE3C085" />
        <GradientStop Offset="0" Color="#FFF4CC89" />
        <GradientStop Offset="1" Color="#FFF5BB56" />
    </LinearGradientBrush>

    <SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_MouseOverStateBrush}" Color="Gray"/>

    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_DefaultState}"
                  RenderOptions.BitmapScalingMode="HighQuality">
        <DrawingImage.Drawing>
            <GeometryDrawing Geometry="M15,4 L3,4 L7,0 L5,0 L0,5 L5,10 L7,10 L3,6 L15,6z" 
                                 Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_DefaultStateBrush}}">
                <GeometryDrawing.Pen>
                    <Pen Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_DefaultStateBrush}}" 
                             Thickness="0.6" />
                </GeometryDrawing.Pen>
            </GeometryDrawing>
        </DrawingImage.Drawing>
    </DrawingImage>

    <DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_MouseOverState}"
                  RenderOptions.BitmapScalingMode="HighQuality">
        <DrawingImage.Drawing>
            <GeometryDrawing Geometry="M15,4 L3,4 L7,0 L5,0 L0,5 L5,10 L7,10 L3,6 L15,6z" 
                                 Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_MouseOverStateBrush}}">
                <GeometryDrawing.Pen>
                    <Pen Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=LeftArrowImage_MouseOverStateBrush}}" 
                             Thickness="0.6" />
                </GeometryDrawing.Pen>
            </GeometryDrawing>
        </DrawingImage.Drawing>
    </DrawingImage>
</ResourceDictionary>